<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<!-- end of view -->

</div>
</div>
<!-- ЕND Content  -->
<!-- Sidebar -->

<div id="sidebar" style="text-align: center;">
	<br>
	<c:if test="${loggedUser.hasRole('user')}">
		<h2>Znajomi</h2>
		<div class="box" style="text-align: center; height: 200px; overflow: scroll; overflow-y: scroll; overflow-x: hidden;">

			<c:forEach items="${loggedUser.getFriends()}" var="friend">
				<a href="profile.html?id=${friend.getAccountID()}">${friend.getName()} ${friend.getSurname()}</a>
				<br>
			</c:forEach>

		</div>
	</c:if>
</div>
<!-- END Sidebar -->
<div class="cl"></div>

<div style="height: 150px;"></div>
<div style="text-align: center;">
	&copy; Portal. <br> Autor: <a href="mailto:maciek.szymczakowski@gmail.com">Maciej Szymczakowski</a>
</div>
<!-- END Footer -->
</div>
<!-- END Main -->
</div>
</body>
</html>